<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>排序</title>
</head>
<body>
	<script type="text/javascript">
		function order( arr ){
			var temp = 0;
			for(var i = 0; i<arr.length; i++ ){
				for( var k = i + 1; k<arr.length; k++ ){
					if( arr[i] > arr[k] ){
						temp = arr[i];
						arr[i] = arr[k];
						arr[k] = temp;
					}
				}
			}
			return arr;
		}
		var arr = [10,75,44,32,30,7,100,200,300,400,500,600];
		document.write(order( arr ));
	</script>
</body>
</html>